package ${packagePath}.model.qo;
<#if swaggerEnable?? && swaggerEnable == 1>
import io.swagger.annotations.ApiModelProperty;
</#if>
import lombok.Data;

import javax.validation.constraints.Max;

@Data
public class BaseQo {
    <#if  swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "分页起始值，默认为0", name = "pageNo")
    <#else>
    /**
     * 分页起始值，默认为0
     */
    </#if>
    private int pageNo = 0;
    <#if  swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "每页数据，默认为10，最大为2000", name = "pageSize")
    <#else>
    /**
     * 每页数据，默认为10，最大为2000
     */
    </#if>
    @Max(2000)
    private int pageSize = 10;

    <#if  swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "排序字段", name = "sortField")
    <#else>
    /**
     * 排序字段
     */
    </#if>
    private String sortField;

    <#if swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "排序方式：desc 或 asc", name = "sortMethod")
    <#else>
    /**
     * 排序方式：desc 或 asc
     */
    </#if>
    private String sortMethod;

    <#if  swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "查询开始时间", name = "startTime")
    <#else>
    /**
     * 查询开始时间
     */
    </#if>
    private String startTime;
    <#if  swaggerEnable?? && swaggerEnable == 1>
    @ApiModelProperty(value = "查询结束时间", name = "endTime")
    <#else>
    /**
     * 查询结束时间
     */
    </#if>
    private String endTime;
}
